#include<iostream>
#include<string>
using namespace std;

//类的关系 有 has a 、 use a 、 is a

class Person{
protected:
	int age;
	string name;
public:
	Person(int a,string n){
		age=a;
		name=n;
	}
	void printS(){
		cout<<age<<"-"<<name<<endl;
	}
};

class Eployee:public Person{
	int age;
public:
	Eployee(int a,string s,int sc):Person(a,s){
	age=sc;
}
	void printS(){
		Person::printS();
			cout<<Person::age<<"-"<<Person::name<<"-"<<age<<endl;
		}
};

int main23(){
	Eployee e(1,"string",12);
	e.printS();
	cout<<"end"<<endl;

	Eployee ep(2,"ep",13);
	Person *p_p=&ep;
//	p_p->printS();
	return 0;
}
